// 引入createStore,专门用于创建redux核心对象store
import {createStore,applyMiddleware} from "redux"
// 引入服务组件Count的reducer
import countReducer from "./count_reducer"
// 引入异步任务需要的redux_thunk
import thunk from 'redux-thunk'


// 创建 Redux store 来存放应用的状态。
export default createStore(countReducer,applyMiddleware(thunk))
